package it.antonio.ilpizze.mock.expectation;

import it.antonio.ilpizze.aop.Invocation;
import it.antonio.ilpizze.mock.Expectation;

public class ThrowableExpectation implements Expectation<Object> {

	private Throwable throwable;

	public ThrowableExpectation(Throwable throwable) {
		this.throwable = throwable;
	}

	@Override
	public Object expect(Invocation invocation) throws Throwable {
		throw throwable;
	}

}